package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.Admin;
import com.stedu.mall.common.exception.SteduException;

public interface AdminService {
    //登录
    Admin login(String username, String password) throws SteduException;

    //根据id查询 - 获取用户登录信息
    Admin selectById(Integer id);

    //修改个人信息
    boolean update(Admin admin);

    //修改密码
    boolean chgPwd(String oldPwd, String newPwd, Integer id) throws SteduException;

    //查询所有
    PageInfo<Admin> selectByAll(Admin admin, Integer pageNum, Integer pageSize);

    boolean updateS(Integer id);
}
